package com.my.fp.streams;

import java.util.List;
import java.util.stream.Collectors;

/**
 * @author marshal
 * @version 2021-05-20
 */
public class StreamTest {

    public static void main(String[] args) {
        var list = List.of(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
        List<Integer> integers = list.stream().map(i -> i * 2).collect(Collectors.toList());
        System.out.println(integers);
    }

}
